Skip to content

Conversation

@vietj
Copy link
Member

@vietj vietj commented Apr 27, 2025

Motivation:

The command response flow uses a futures that piggies back to the query result builder and then completes the overall result promise.

Only the terminal node needs to be a promise/future as we are always on the same connection context.

The internal command response flow can uses instead a Completable flow that is much more straightforward for debugging and saves un-necessary method calls.

Changes:

Use a Completable response flow internally instead of the Promise based flow.

@vietj vietj added this to the 5.0.0 milestone Apr 27, 2025
@vietj vietj self-assigned this Apr 27, 2025
Motivation:

The command response flow uses a futures that piggies back to the query result builder and then completes the overall result promise.

Only the terminal node needs to be a promise/future as we are always on the same connection context.

The internal command response flow can uses instead a Completable flow that is much more straightforward for debugging and saves un-necessary method calls.

Changes:

Use a Completable response flow internally instead of the Promise based flow.
@vietj vietj force-pushed the simplify-internal-promise-flow branch from 2d26e23 to 5a383f4 Compare April 27, 2025 12:10
@vietj vietj merged commit e5f39ea into master Apr 27, 2025
18 checks passed
@vietj vietj deleted the simplify-internal-promise-flow branch April 27, 2025 12:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants